package com.hades.example.java.refactoring.before.c11.c11_10_form_template_method;

public class NewReleasePrice extends Price {
    @Override
    public int getPriceCode() {
        return Movie.NEW_RELEASE;
    }

    public double getCharge(final int daysRented) { // each -> rental
        double result = 0;
        result += daysRented * 3;
        return result;
    }
}
